package cn.wolfcode.rbac.domain;

import com.alibaba.fastjson.JSON;
import lombok.Data;

// 字典明细
import java.util.HashMap;
@Data
public class SystemDictionaryItem {
    private Long id;

    private Long parentId;  // 所属目录id

    private String title;   // 标题

    private Integer sequence;   // 序号

    public String getJson(){
        HashMap<String,Object> map = new HashMap<>();
        map.put("id",id);
        map.put("parentId",parentId);
        map.put("title",title);
        map.put("sequence",sequence);
        return JSON.toJSONString(map);
    }
}